<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_device_procedure".
 *
 * @property integer $id
 * @property string $url
 * @property string $num
 * @property string $instruction
 * @property string $create_time
 */
class TDeviceProcedure extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_device_procedure';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['url', 'num', 'create_time'], 'required'],
            [['create_time'], 'safe'],
            [['url', 'instruction'], 'string', 'max' => 100],
            [['num'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'url' => Yii::t('app', 'Url'),
            'num' => Yii::t('app', 'Num'),
            'instruction' => Yii::t('app', 'Instruction'),
            'create_time' => Yii::t('app', 'Create Time'),
        ];
    }

    /**
     * @inheritdoc
     * @return \app\models\query\TQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \app\models\query\TQuery(get_called_class());
    }
}
